Release 10.1A: OpenEdge Data Management:
SQL Development
Working with views
A view is a virtual table created by a query. The query can retrieve data from specific columns in one or more tables. Views are created when users need to routinely query one or more tables for the same information.
CREATE VIEW
Use the
CREATE VIEWstatement to create a view on existing tables or views. You specify the name for theVIEW.Example 5–8 demonstrates the use of a code sample. The statement is used to retrieve information from the customer base, but only information on those customers located within the six New England states.
DROP VIEW
The statement needed to drop a view is a short and simple one, as shown in Example 5–9.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |